package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 药品分类对象 sys_classification
 * 
 * @author jiashu
 * @date 2025-03-13
 */
public class SysClassification extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long classificationId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long parentClassificationId;

    /** 药品id */
    @Excel(name = "药品id")
    private Long medicineId;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String classificationName;

    /** 分类描述 */
    @Excel(name = "分类描述")
    private String classificationDescription;


    // 分层子项
    private List<SysClassification> children; // 建议属性名改为children更直观

    public List<SysClassification> getLists() {
        return children;
    }

    public void setLists(List<SysClassification> lists) {
        this.children = lists;
    }


    public void setClassificationId(Long classificationId) 
    {
        this.classificationId = classificationId;
    }

    public Long getClassificationId() 
    {
        return classificationId;
    }
    public void setParentClassificationId(Long parentClassificationId) 
    {
        this.parentClassificationId = parentClassificationId;
    }

    public Long getParentClassificationId() 
    {
        return parentClassificationId;
    }
    public void setMedicineId(Long medicineId) 
    {
        this.medicineId = medicineId;
    }

    public Long getMedicineId() 
    {
        return medicineId;
    }
    public void setClassificationName(String classificationName) 
    {
        this.classificationName = classificationName;
    }

    public String getClassificationName() 
    {
        return classificationName;
    }
    public void setClassificationDescription(String classificationDescription) 
    {
        this.classificationDescription = classificationDescription;
    }

    public String getClassificationDescription() 
    {
        return classificationDescription;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("classificationId", getClassificationId())
            .append("parentClassificationId", getParentClassificationId())
            .append("medicineId", getMedicineId())
            .append("classificationName", getClassificationName())
            .append("classificationDescription", getClassificationDescription())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
